import { axios } from '@/utils/request'
import config from '@/config/appConfig'
import querystring from 'querystring'

//新增
export function addDistributionRatio (parameter) {
  return axios({
    url: config.url,
    method: 'post',
    data:querystring.stringify({
      _gp: 'admin.distributionRatio',
      _mt: 'addDistributionRatio',
      ...parameter
    })
  })
}

export function getDistributionRatioList (userId) {
  return axios({
    url: config.url,
    method: 'get',
    params: {
      _gp: 'admin.distributionRatio',
      _mt: 'queryDistributionRatio',
      userId
    }
  })
}


